from Runner import run_tasks

tasks = [  
    {  
        "task": "task_name_1",  
        "action": {  
            "name": "click",  
            "params":{
                "x": 123,
            }
        },  
        "sleep":1,
    }, 
    {  
        "task": "task_name_2",  
        "action": {  
            "name": "click",  
            "params":{
                "x": 15223,  
            }
        },  
        "sleep":{"range":[2,5]},

    }, 
    {  
        "task": "task_name_3",  
        "action": {  
            "name": "click",  
            "params":{
                "x": 127773,  
            }
        },  
        "callback":{
            "name":"kanGuangGao"
        },
    }, 
]  


run_tasks(tasks,loop=0)